<template>
  <v-select
      v-model="val"
      fieldText="orgName"
      :data="getTotalSchoolOrgs"
      :disabled="disabled"
      allow-clear
  />
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import { getTotalSchoolOrgs } from '@/api/sys-org'

const props = defineProps({
  modelValue: String,
  disabled: Boolean
})

const val = computed({
  set: val => emits('update:modelValue', val),
  get: () => props.modelValue
})

const emits = defineEmits(['update:modelValue'])
</script>

<style scoped>

</style>
